
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>系统管理员 HDSysCms</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/style/admin.css" media="all">
</head>
<body data="HDSYSCMS 2021本系统受国家版权局保护请勿破解或者二次开发传播">
<div class="layui-fluid">
<div class="layui-row layui-col-space15">
<div class="layui-col-md12">
<div class="layui-card">
<div class="layui-card-body">
<form class="layui-form" action="">
<div class="layui-form-item" >
<label class="layui-form-label">Tags名称</label>
<div class="layui-input-inline">
<input type="text" name="name" required  lay-verify="required" placeholder="HDSYS(火蝶)建站" autocomplete="off" class="layui-input">
</div>
<div class="layui-form-mid layui-word-aux"></div>
</div>
<div class="layui-form-item en-hide">
<label class="layui-form-label en">Tags名称(英)</label>
<div class="layui-input-inline">
<input type="text" name="ename" placeholder="Hdsyscms" autocomplete="off" class="layui-input">
</div>
<div class="layui-form-mid layui-word-aux"></div>
</div>
<div class="layui-form-item" >
<label class="layui-form-label">排序</label>
<div class="layui-input-inline">
<input type="text" name="sort" required value="1"  lay-verify="required" placeholder="0" autocomplete="off" class="layui-input">
</div>
<div class="layui-form-mid layui-word-aux"></div>
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="layui-btn" lay-submit lay-filter="post">确认添加</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<?php adminechohtnl(); ?>
<script src="<?php echo getcdnurlhost() ?>/admin/layui/layui.js"></script>
<script>layui.config({base: '<?php echo getcdnurlhost() ?>/admin/'}).use([ 'form','layer'], function(){var admin=layui.admin, $=layui.$, form=layui.form;parent.layer.iframeAuto(parent.layer.getFrameIndex(window.name));form.on('submit(post)', function (data) {data=data.field;if (data.name=='') {layer.msg('标签中文名称不能空');return false;}$.ajax({type:  "post",url: 'index.php?m=manage&c=Tags&a=add_ajax',data :data,dataType: "json",success: function(ret){layer.msg(ret.msg);if(ret.code==1){parent.layui.table.reload('test-table-toolbar', { page: {curr: 1} });}}});return false;});});</script>
</body>
</html>
